package xgenerator.ui.swing.model;

import javax.swing.DefaultComboBoxModel;

import xgenerator.constants.PropertyTypes;

public class PropertyTypeComboBoxModel extends DefaultComboBoxModel {
	
	/**
	 * Serializable
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 
	 */
	private PropertyTypes propertyTypes;
	
	/**
	 * constructor
	 * @param propertyTypes
	 */
	public PropertyTypeComboBoxModel(PropertyTypes propertyTypes) {
		this.addElement(propertyTypes.booleanType());
		this.addElement(propertyTypes.byteType());
		this.addElement(propertyTypes.shortType());
		this.addElement(propertyTypes.intType());
		this.addElement(propertyTypes.longType());
		this.addElement(propertyTypes.floatType());
		this.addElement(propertyTypes.doubleType());
		
		this.addElement(propertyTypes.booleanWrapper());
		this.addElement(propertyTypes.byteWrapper());
		this.addElement(propertyTypes.shortWrapper());
		this.addElement(propertyTypes.intWrapper());
		this.addElement(propertyTypes.longWrapper());
		this.addElement(propertyTypes.floatWrapper());
		this.addElement(propertyTypes.doubleWrapper());
		
		this.addElement(propertyTypes.number());
		this.addElement(propertyTypes.bigInteger());
		this.addElement(propertyTypes.bigDecimal());
		
		this.addElement(propertyTypes.string());
		this.addElement(propertyTypes.stringBuffer());
		this.addElement(propertyTypes.stringBuilder());
		
		this.addElement(propertyTypes.date());
		this.addElement(propertyTypes.time());
		this.addElement(propertyTypes.timestamp());
		this.addElement(propertyTypes.calendar());
		
		this.addElement(propertyTypes.byteArray());
		this.addElement(propertyTypes.serializable());
		this.addElement(propertyTypes.clob());
		this.addElement(propertyTypes.blob());
		this.addElement(propertyTypes.object());
	}
	
}
